package com.example.demo.controller;

import com.example.demo.model.Student;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloRestful {
    @RequestMapping("/hellorest")
    public Student hello() throws Exception{
        Student student = new Student();
        student.setName("zhangyixuan");
        student.setAge(18);
        return student;
    }
}
